<!--车辆转户办理-->
<template>
<div class="public-common">
    <div class="public-title">车辆转户申请列表</div>
    <el-button type="primary" icon="el-icon-refresh-left"style="float: right; margin-bottom: 10px;">刷新</el-button>
    <el-button type="primary" icon="el-icon-printer"style="float: right; margin-bottom: 10px; margin-right: 10px;">打印</el-button>
    <el-button type="primary" icon="el-icon-edit" style="float: right; margin-bottom: 10px; margin-right: 10px;" @click="dialogVisible=true">转户申请</el-button>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="转户类型" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="车牌号" prop="a2">
            </el-table-column>
            <el-table-column
                label="申请状态" prop="a3">
            </el-table-column>
            <el-table-column
                label="原公司业务员" prop="a4">
            </el-table-column>
            <el-table-column
                label="原单位" prop="a5">
            </el-table-column>
            <el-table-column
                label="原车主姓名" prop="a6">
            </el-table-column>
            <el-table-column
                label="原车主身份证" prop="a7">
            </el-table-column>
            <el-table-column
                label="车辆性质" prop="a8">
            </el-table-column>
            <el-table-column
                label="现单位" prop="a9">
            </el-table-column>
            <el-table-column
                label="现车主姓名" prop="a10">
            </el-table-column>
            <el-table-column
                label="现车主身份证" prop="a11">
            </el-table-column>
            <el-table-column
                label="现公司业务员" prop="a12">
            </el-table-column>
            <el-table-column
                label="申请提交人" prop="a13">
            </el-table-column>
            <el-table-column
                label="申请日期" prop="a14">
            </el-table-column>
            <el-table-column
                label="打印日期" prop="a15">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
        <el-dialog title="车辆转户申请" :visible.sync="dialogVisible" width="50%" >
        	<el-form :model="editForm" ref="editForm" label-width="80px" class="qysb-form-f" >
        	<el-scrollbar style="height:100%;">
            <div class="fuwukab">转户验证</div>
        		<el-row>
        			<el-col :span="10">
        			  <el-form-item label="原车牌号" class="cyqlabel">
        			  		<el-select  size="small"style="width: 100%;" placeholder="请选择"  v-model="editForm.zhuanh1">
        			  			<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
        			  		</el-select>
        			  </el-form-item>
        			</el-col>
              <el-col :span="10">
                <el-form-item label="业务员编号" class="cyqlabel">
                		<el-input size="small" v-model="editForm.zhuanh2" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="4">
                <el-button type="primary" icon="el-icon-search" style="margin-left:10px;">查询</el-button>
              </el-col>
            </el-row>
            <div class="fuwukab">原公司信息</div>
            <el-row>
              <el-col :span="12">
                <el-form-item label="单位名称" class="cyqlabel">
                		<el-input size="small" v-model="editForm.zhuanh3" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="车辆性质" class="cyqlabel">
                		<el-input size="small" v-model="editForm.zhuanh4" ></el-input>
                </el-form-item>
              </el-col>
        		</el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="车主姓名" class="cyqlabel">
                		<el-input size="small" v-model="editForm.zhuanh5" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="车主身份证" class="cyqlabel">
                		<el-input size="small" v-model="editForm.zhuanh6" ></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="转户类型" class="cyqlabel">
                		<el-input size="small" v-model="editForm.zhuanh7" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
              </el-col>
            </el-row>
            <div class="fuwukab">新公司信息</div>
            <el-row>
              <el-col :span="12">
                <el-form-item label="单位名称" class="cyqlabel">
                		<el-input size="small" v-model="editForm.zhuanh8" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="车主姓名" class="cyqlabel">
                		<el-input size="small" v-model="editForm.zhuanh9" ></el-input>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row>
              <el-col :span="12">
                <el-form-item label="车主身份证" class="cyqlabel">
                		<el-input size="small" v-model="editForm.zhuanh10" ></el-input>
                </el-form-item>
              </el-col>
              <el-col :span="12">
              </el-col>
            </el-row>
            <div style="text-align:center;margin-top:6px;">
              <el-button type="primary" @click="">确认</el-button>
              <el-button type="info" size="small" @click="dialogVisible=false">取消</el-button>
            </div>
           </el-scrollbar>
           </el-form>
         </el-dialog>
</div>
</template>

<script>
export default {
    data(){
        return {
          dialogVisible:false,
          tabledata:[
              {
                  a1: '自主转户',
                  a2: '陕A28584',
                  a3: '已申请',
                  a4: '丁建国',
                  a5: '东软集团',
                  a6: '于德浩',
                  a7: '21039239939191922',
                  a8: '集体',
                  a9: '移动集团',
                  a10: '丁一针',
                  a11: '2101231239391292',
                  a12: '丁建国',
                  a13: '丁建国',
                  a14: '2018-10-10',
                  a15: '2018-10-11',
              },
              {
                  a1: '自主转户',
                  a2: '陕A28123',
                  a3: '已申请',
                  a4: '王二国',
                  a5: '东软集团',
                  a6: '于志乃',
                  a7: '21039239939191123',
                  a8: '集体',
                  a9: '移动集团',
                  a10: '刘璇',
                  a11: '2101231239123123',
                  a12: '丁建国',
                  a13: '丁建国',
                  a14: '2018-10-10',
                  a15: '2018-10-11',
              },
              {
                  a1: '自主转户',
                  a2: '陕A28545',
                  a3: '已申请',
                  a4: '丁宇豪',
                  a5: '东软集团',
                  a6: '于小年',
                  a7: '21039239939112345',
                  a8: '集体',
                  a9: '移动集团',
                  a10: '丁焚天',
                  a11: '2101231239345676',
                  a12: '丁建国',
                  a13: '丁建国',
                  a14: '2018-10-10',
                  a15: '2018-10-11',
              },
          ],
          page:{
            now:1,
            pagesize:10,
            sizes:[2,10, 20, 50, 100],
            total:0,
            key:''
          },
          item:[
          	{text:'a12345',value:'0'},
          	{text:'la12346',value:'1'}
           ],
          editForm:{
            zhuanh1:'',
            zhuanh2:'',
            zhuanh3:'',
            zhuanh4:'',
            zhuanh5:'',
            zhuanh6:'',
            zhuanh7:'',
            zhuanh8:'',
            zhuanh9:'',
            zhuanh10:''
          },
        }
    },
    methods:{
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .cyqlabel .el-form-item__label{ width: 120px !important;}
  .cyqlabel .el-form-item__content{ margin-left: 120px  !important;}
  .public-common .el-form-item .el-input{ width: 100%;}
  .public-title,.fuwukab{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}
  .el-scrollbar__wrap{ margin: 0 !important;}
</style>
